package com.example.orderservice.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author lenovo
 * @Description     RestTemplate的配置类
 * RestTemplate能够实现网络调用服务功能
 * @Date2025/4/14 下午5:12
 */
@Configuration
public class RestTemplateConfig {

    @LoadBalanced

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
